/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.xiongda.entity;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.jeeplus.common.persistence.DataEntity;
import com.jeeplus.common.utils.excel.annotation.ExcelField;

/**
 * 评论Entity
 * @author 缪琼
 * @version 2017-11-29
 */
public class XComment extends DataEntity<XComment> {
	
	private static final long serialVersionUID = 1L;
	private String parentIds;		// 子评论/回复(格式 : 数字,数字。前一个数字表示哪层楼底下的回复，后一个数字表示回复哪条信息，用逗号隔开)
	private XUser xUser;		// 用户id
	private String userNikeName;		// 用户昵称
	private String userHeadPicture;		// 用户头像
	private String replyUserNikeName;		// 回复用户昵称
	private String content;		// 评论内容
	private Date createTime;		// 创建时间
	private Date updateTime;		// 更新时间
	private Integer praise;		// 点赞
	
	public XComment() {
		super();
	}

	public XComment(String id){
		super(id);
	}

	@ExcelField(title="子评论/回复(格式 : 数字,数字。前一个数字表示哪层楼底下的回复，后一个数字表示回复哪条信息，用逗号隔开)", align=2, sort=1)
	public String getParentIds() {
		return parentIds;
	}

	public void setParentIds(String parentIds) {
		this.parentIds = parentIds;
	}
	
	@ExcelField(title="用户id", align=2, sort=2)
	public XUser getUser() {
		return xUser;
	}

	public void setUser(XUser xUser) {
		this.xUser = xUser;
	}
	
	@ExcelField(title="用户昵称", align=2, sort=3)
	public String getUserNikeName() {
		return userNikeName;
	}

	public void setUserNikeName(String userNikeName) {
		this.userNikeName = userNikeName;
	}
	
	@ExcelField(title="用户头像", align=2, sort=4)
	public String getUserHeadPicture() {
		return userHeadPicture;
	}

	public void setUserHeadPicture(String userHeadPicture) {
		this.userHeadPicture = userHeadPicture;
	}
	
	@ExcelField(title="回复用户昵称", align=2, sort=5)
	public String getReplyUserNikeName() {
		return replyUserNikeName;
	}

	public void setReplyUserNikeName(String replyUserNikeName) {
		this.replyUserNikeName = replyUserNikeName;
	}
	
	@ExcelField(title="评论内容", align=2, sort=6)
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@ExcelField(title="创建时间", align=2, sort=7)
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@ExcelField(title="更新时间", align=2, sort=8)
	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	
	@ExcelField(title="点赞", align=2, sort=10)
	public Integer getPraise() {
		return praise;
	}

	public void setPraise(Integer praise) {
		this.praise = praise;
	}
	
}